
class carts{
    constructor(id,goodsid,data="",qty=1) {
        this.userid = id*1;
        this.goodsid = goodsid*1;
        this.data = data;
        this.qty = qty*1;
    }
}

class add{
    constructor(data = {
        username: "邱雄",
        state: 1,
        dormitory: "A1-653",
        problem: "下水道堵塞",
        statetime: "2021-5-16",
        endtime: '',
        remark:''
    }) {
        this.data=data
    }
}


class deltete{
    constructor(userid, goodsid) {
        this.userid = userid*1;
        this.goodsid = goodsid;
    }
}

class select{
    constructor(page=1,size=10) {
        this.page = page*1;
        this.size = size*1;
    }
}
class list{
    constructor(field,input) {
        this.field = field;
        this.input = input;
    }
}


class update{
    constructor(id, data) {
        this.id = id*1;
        this.data = data;
    }
}
module.exports = {carts,deltete,select,update,add,list};